package com.panda.takeaway.entity.bo;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author wjh
 * @date 2021/8/7 9:34
 * @Package com.panda.takeaway.entity.bo
 */
public class LoginBo {
    /**
     * 账号
     */
    @Length(min = 11, max = 11, message = "这不是一个手机号")
    private String telephone;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    public LoginBo() {
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "LoginBo{" +
                "telephone='" + telephone + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
